import java.util.*;

public class ShuZhulianxi {
    public static void main(String[] args) {
        double[] scores=new double[3];
        Scanner input=new Scanner(System.in);
        double sum=0;
        for (int i =0;i<scores.length;i++){
            System.out.println("请输入第"+(i+1)+"个同学的成绩");
            scores[i]=input.nextDouble();
            sum+=scores[i];
        }
        double avg =sum/scores.length;
        System.out.println("全班的平均分是:"+avg);
    }
}

